<?php /* EL PSY CONGROO */    			    	   	 	 	    	 			   
require '../../../../zb_system/function/c_system_base.php'; 	 	    	 	   	    
require '../../../../zb_system/function/c_system_admin.php';     	   	 	     	   	  				   	
$zbp->Load();   							   	 	
$action='root';     							 			    	 	  			    			 	   
if (!$zbp->CheckRights($action)) {$zbp->ShowError(6);die();} 		 	    
if (!$zbp->CheckPlugin('YtUser')) {$zbp->ShowError(48);die();}    	   					 		 	    	 				 	
	 	 				     	 	
if (isset($_GET['act'])){$act = $_GET['act'];}else{$act = 'base';}    											    			 		 	  	 
    	 	  	  	    	  
$blogtitle='用户中心';  	  			     
require $blogpath . 'zb_system/admin/admin_header.php';    			 	  	  				   	   	
require $blogpath . 'zb_system/admin/admin_top.php'; 	   				    				
    			 	  			
?>

<div id="divMain">

  <div class="divHeader"><?php echo $blogtitle;?></div>
	<div class="SubMenu">
		<?php echo YtUser_SubMenu('payment'); ?>
		<a href="http://www.kancloud.cn/showhand/zbloguser" target="_blank"><span class="m-left" style="color:#F00">适配教程</span></a>
		<?php if ($act == 'buy'){?>
		<a href="?act=buy&buystate=nopay"><span class="m-right" style="color:red">未付款</span></a>
		<a href="?act=buy&buystate=paid"><span class="m-right" style="color:green">已付款</span></a>
		<?php }?>
    </div>
  <div id="divMain2">

  <form enctype="multipart/form-data" method="post" action="save.php?type=payment">  
  <input id="reset" name="reset" type="hidden" value="" />
  <table border="1" class="tableFull tableBorder">
  <tr>
	  <th><p align='left'><b>选项</b><br><span class='note'></span></p></th>
      <th>请先安装并启动 - <a href="<?php echo $zbp->host; ?>zb_users/plugin/AppCentre/main.php?id=883" target="_blank">支付宝即时到帐接口</a>
	  </th>
  </tr>
  <tr>
	  <td><p align='left'><b>是否开启支付宝</b></p></td>
	  <td><input type="text" class="checkbox" name="payment" value="<?php echo $zbp->Config('YtUser')->payment;?>" /></td>
  </tr>
  <tr>
	  <td><p align='left'><b>品牌名</b></p></td>
	  <td><input type="text" name="brand" style="width:150px;" value="<?php echo $zbp->Config('YtUser')->brand ;?>" style="width:89%;" /></td>
  </tr>
  <tr>
	  <td><p align='left'><b>VIP一个月</b></p></td>
	  <td><input type="text" name="pricetemp1" style="width:150px;" value="<?php echo $zbp->Config('YtUser')->pricetemp1 ;?>" style="width:89%;" />元</td>
  </tr>
  <tr>
	  <td><p align='left'><b>VIP三个月</b></p></td>
	  <td><input type="text" name="pricetemp2" style="width:150px;" value="<?php echo $zbp->Config('YtUser')->pricetemp2 ;?>" style="width:89%;" />元</td>
  </tr>
  <tr>
	  <td><p align='left'><b>VIP一年</b></p></td>
	  <td><input type="text" name="pricetemp3" style="width:150px;" value="<?php echo $zbp->Config('YtUser')->pricetemp3 ;?>" style="width:89%;" />元</td>
  </tr>
  <tr>
      <td><p align='left'><b>100<?php echo $zbp->Config('YtUser')->jifenname ;?></b></p></td>
	  <td><input type="text" name="pricetemp5" style="width:150px;" value="<?php echo $zbp->Config('YtUser')->pricetemp5 ;?>" style="width:89%;" />元</td>
  </tr>
  <tr>
      <td><p align='left'><b>200<?php echo $zbp->Config('YtUser')->jifenname ;?></b></p></td>
	  <td><input type="text" name="pricetemp6" style="width:150px;" value="<?php echo $zbp->Config('YtUser')->pricetemp6 ;?>" style="width:89%;" />元</td>
  </tr>
  <tr>
      <td><p align='left'><b>300<?php echo $zbp->Config('YtUser')->jifenname ;?></b></p></td>
	  <td><input type="text" name="pricetemp7" style="width:150px;" value="<?php echo $zbp->Config('YtUser')->pricetemp7 ;?>" style="width:89%;" />元</td>
  </tr>
  </table>
		<hr/>
		<p>
		  <input type="submit" class="button" value="<?php echo $lang['msg']['submit']?>" />
		</p>
  </form>

	<script type="text/javascript">ActiveLeftMenu("aPluginMng");</script>
	<script type="text/javascript">AddHeaderIcon("<?php echo $bloghost . 'zb_users/plugin/YtUser/logo.png';?>");</script>	
  </div>
</div>

<?php
require $blogpath . 'zb_system/admin/admin_footer.php';	   	     					   			     	  	 	 
RunTime();  	   	 	 
?>